import request from '@/request.js';
import axios, { Axios } from "axios"


// 绑定学生
export function addStudent(data) {
        console.warn(JSON.stringify(data));
        return request({
                url: "/api/adminstu/stuBusp/save",
                method: 'post',
                data
        })
}
// 修改学生
export function updateStudent(data) {
        console.warn(JSON.stringify(data));
        return request({
                url: "/api/adminstu/stuBusp/update",
                method: 'put',
                data
        })
}

// 查询学生信息详情
export function readStudentId(data) {
        return request({
                url: "/api/adminstu/stuBusp/selectById",
                method: 'get',
                params: data
        })
}

// 查询当前学生信息
export function readStudentWX(data) {
        console.warn(JSON.stringify(data));
        return request({
                url: "/api/adminstu/stuBusp/selectByWxId",
                method: 'get',
                params: data
        })
}
// 查询字典
export function fetchDictList(data) {
        return request({
                url: "/api/sys/dict/data/getList",
                method: 'get',
                params: data
        })
}

// 文件上传
export function uploadFile(data) {
        return request({
                url: "/api/sys/oss/upload",
                method: 'post',
                data
        })
}

// 查询国家
export function fetchContry(data) {
        return request({
                url: "/api/admincountry_province_state/parentList",
                method: 'get',
                params: data
        })
}

// 查询省/州
export function fetchProvince(data) {
        return request({
                url: "/api/admincountry_province_state/list",
                method: 'get',
                params: data
        })
}

// 填写更近信息
export function addStuFllow(data) {
        return request({
                url: "/api/adminstu/stuFollow/save",
                method: 'post',
                data
        })
}